﻿using GetHbaseDataTests.Helpers;
using Sustainalytics.ClientDW.Synchronization.SyncHbaseData;
using Xunit;
using Xunit.Abstractions;

namespace GetHbaseDataTests.PeerGroupTests
{
    public class PeerGroupHbaseQueryTests : BaseSyncHbaseTests
    {
        private readonly CorporateDatabaseQuery _sut;

        public PeerGroupHbaseQueryTests(ITestOutputHelper output) : base(output)
        {
            _sut = SimpleInjectorContainer.GetInstance<CorporateDatabaseQuery>();
        }

        [Fact]
        public void Get_Should_Return_NotEmpty()
        {
            var peerGroups = _sut.Get(cddb => cddb.GetPeerGroups());
            Assert.NotEmpty(peerGroups);
        }
    }
}
